package main

import (
	"news-mgmt-sys/appconfig"
	"news-mgmt-sys/models"
	"news-mgmt-sys/router"
)

func main() {

	//加载配置
	appconfig.Init()

	//连接数据库
	models.Init()

	r := router.Init()
	r.Run(":8000")

}
